package cn.fjgc.work;

public class Test {
	public static void main(String[] args) {
		String str1 = "Hello";
		String str3 = "World";
		String str4 = new String("Hello");
		String str5 = new String("Hello");
		String str2 = new String("nihao sddddsssss");
		StringBuffer sb1 = new StringBuffer("Hello");
		StringBuffer sb2 = new StringBuffer("Hello");

		System.out.println("str5 = " + str4.hashCode());
		System.out.println("str4 = " + str5.hashCode());
		System.out.println(str5 == str4);
		System.out.println(str1.hashCode());
		System.out.println(str1.hashCode());
		System.out.println(str1.hashCode());
		System.err.println(str2.hashCode());
		System.err.println(str3.hashCode());
		System.err.println(sb1.hashCode());
		System.err.println(sb2.hashCode());
		
	}
}
